<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    //1. 使用解构赋值，实现两个变量的值的交换
    let a = "变量a";
    let b = "变量b";
    [a,b] = [b,a];
    console.log(a,b);
  </script>
</body>
</html>